package com.thb.pay.api.payment.fallback;

import com.thb.pay.api.payment.AgentpayPassageServiceApi;
import com.thb.pay.api.payment.vo.req.AgentpayPassagePageReq;
import com.thb.pay.api.payment.vo.req.AgentpayPassageReq;
import com.thb.pay.api.payment.vo.resp.AgentpayPassageVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class AgentpayPassageServiceApiFallbackFactory implements FallbackFactory<AgentpayPassageServiceApi> {


    @Override
    public AgentpayPassageServiceApi create(Throwable throwable) {
        return new AgentpayPassageServiceApi() {
            @Override
            public PageResult<AgentpayPassageVo> findPage(AgentpayPassagePageReq pageReq) {
                return null;
            }

            @Override
            public List<AgentpayPassageVo> findAllList() {
                return null;
            }

            @Override
            public AgentpayPassageVo getById(Long id) {
                return null;
            }

            @Override
            public void add(AgentpayPassageReq agentpayPassageReq) {

            }

            @Override
            public void update(AgentpayPassageReq agentpayPassageReq) {

            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}